package Day03;

public class OpenDemo {
    public static void main(String[] args) {
        /**
         * 算数运算符；+ - * / % ++ --
         */
       /* int a=5;
        int b=5;
        int c=a++;
        int d=++b;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(a==c);
        System.out.println(a!=c);
        System.out.println(a+c>b);
        System.out.println(b++>5);
        System.out.println(++b>5);
        System.out.println(b++>5);

        */
       /* int a=5,b=10,c=5;
        boolean b4=a<b||c++>2;
        System.out.println(b4);
        System.out.println(c);

        */

      /*  int a =5;
        a+=10;//相当于a=(int)(a+10)
        System.out.println(a);
        short b=5;
        b=(short)(b+10);
        b+=10;
        System.out.println(b);
        String name="潘胜";
        System.out.println("大家好，我叫"+name+",今年"+b+"岁了");

       */
        //同化作用
        System.out.println(10+20+30+"");
        System.out.println(10+20+""+30);
        System.out.println(10+""+20+30);
        int a=8,b=55;
        int max= a>b?a:b;
        System.out.println(max);


        // 三种结构
        // 顺序结构
        //分支结构
        //循环结构


    }
}
